package com.leo.springbootmultithreadbasic.lock.reentrantlock.basicdemo.demo1;

/**
 * @author Leo
 * @version V1.0
 * @date 2021/10/31 11:40 PM
 */
public class MyThread extends Thread {

    private MyService myService;

    public MyThread(MyService myService) {
        super();
        this.myService = myService;
    }

    @Override
    public void run() {
        myService.testLock();
    }
}
